<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/app.css" />
		<style>
			#content img {
				width: 100%;

			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">列表详情</h1>
		</header>

		<div class="mui-content">
			<div id="layout" class="padding-10">

			</div>
		</div>

		<script src="js/mui.js"></script>
		<script src="libs/request-1.js" type="text/javascript" charset="utf-8"></script>
		<script src="libs/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.init()
			mui.plusReady(function() {
				main()
			})
			main()

			function main() {
				get(Api.index.listDetail + localStorage.getItem('list-detail-id')).then(res => {
					let data = res.data
					document.getElementById("layout").innerHTML = `<h2 style="text-align: center;">${data.title}</h2>
				<img src="${baseUrl+data.cover}" alt="" class="border-radius-10" style="width:100%;margin: 10px 0;"/>
				<div id="content" class="back-white padding-10">
					${data.content}
				</div>`
				})
			}
		</script>
	</body>

</html>